package com.jiang.dao;

import com.jiang.bean.Teacher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeaDao {
    public int getTeaCount(@Param("name") String name);

    public List<Teacher> getAllTea(@Param("name")String name,@Param("pageStart")int pageStart,@Param("pageSize")int pageSize);

    public int addTea(Teacher teacher);

    public int deleteTea(int id);

    public int updataTea(Teacher teacher);

    public Teacher getUpdataTea(int id);

    public Teacher selectBynum(String numno);
}
